package com.guli.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guli.eduservice.bean.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.eduservice.bean.vo.CourseInfoVo;
import com.guli.eduservice.bean.vo.CoursePublishVo;
import com.guli.eduservice.bean.vo.front.CourseQueryVo;
import com.guli.eduservice.bean.vo.front.CourseWebVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2022-04-05
 */
public interface EduCourseService extends IService<EduCourse> {
    String saveEduCourse(CourseInfoVo courseInfoVo);

    CourseInfoVo getEduCourse(String courseId);

    void updateEduCourse(CourseInfoVo courseInfoVo);

    CoursePublishVo getCoursePublishVoById(String id);

    List<EduCourse> getEightCourse();

    Map<String, Object> getCoursePage(Page<EduCourse> pageParam, CourseQueryVo courseQueryVo);
    /**
     * 获取课程信息
     * @param id
     * @return
     */
    CourseWebVo selectInfoWebById(String id);

    void updatePageViewCount(String id);
}
